package main.java.main;

import com.alibaba.fastjson.JSON;
import main.java.main.bean.AutoBean;
import main.java.main.util.CreateUtil;
import main.java.main.util.DateUtil;
import main.java.main.util.ReadCsvFile;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * 一键生成  个别 规律性任务的  重复代码；
 *
 * @author yangsheng
 *
 * @date  2020.07.20
 *
 */
public class CreateCsv01 {


    public static void main(String[] args) throws IOException {
        // 读取csv目录
        String path = System.getProperty("user.dir") + "/V6NewTools/conf/test1/test01.csv";
//        String path = System.getProperty("user.dir") + "/V6NewTools/conf/test1/sql1.csv";
        ArrayList<String[]> csvList = ReadCsvFile.readCsvFile(path);
        try {
            //test 生成a05下res的actionId 维护的csv
//            CreateUtil.createTest01(csvList);

            //test2 生成所有代码，任务：20200618165025000999 【日志完善】TMS日志actionID 完善(公共)
            CreateUtil.createTest02(csvList);
            CreateUtil.createTest03(csvList);

            //test3 生成所有sql 1,2，任务:20200604173742000672
//            String path = System.getProperty("user.dir") + "/V6NewTools/conf/test1/sql1.csv";
//            ArrayList<String[]> csvList = ReadCsvFile.readCsvFile(path);
//            CreateUtil.createTestSql01(csvList);
//            String path2 = System.getProperty("user.dir") + "/V6NewTools/conf/test1/sql2.csv";
//            ArrayList<String[]> csvList2 = ReadCsvFile.readCsvFile(path2);
//            CreateUtil.createTestSql02(csvList2);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }


}